home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
tool6v12
/
demoscr.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-07-01
|
1KB
|
46 lines
Program DemoScreen;
{ Purpose....... Demonstrates the use of the following units: screen
Comments...... None
Author........ Thayne Breetzke
Date.......... 31 March 1994 }
Uses
Crt,
Input,
Cursor,
Screen;
Var
Count : Byte;
ScrBuffer : ScrBufferRec;
CState : CStateRec;
Begin
TextAttr := 7;
SaveCursor(InsertKey,CState);
CursorOff;
SaveArea(1,1,80,25,ScrBuffer);
For Count := 0 to 6 do
Begin
ChangeAttr(Count*4+1,Count+1,80-(Count*4),25-Count,0+(7-Count)*16);
Delay(50)
end;
WriteXY(34,13,'Press a key...',7+1*16+128);
WaitForKeypress;
For Count := 1 to 13 do
Begin
ScrollUp(1,1,80,13,1,7);
ScrollDown(1,13,80,25,1,7);
ScrollRight(40,1,80,25,1,7);
ScrollLeft(1,1,39,25,1,7);
Delay(5)
end;
RestoreArea(ScrBuffer);
RestoreCursor(CState);
Writeln('Display type = ',DisplayType,' (',DisplayTypeDesc(DisplayType),')');
Writeln('Video mode = ',VideoMode,' (',VideoModeDesc(VideoMode),')');
Writeln('Rows on screen = ',RowsOnScreen);
Writeln('Cols on screen = ',ColsOnScreen);
end.